package ebank;

class Account{
	private double balance;
	public Account( double startingBalance){
		balance = startingBalance;
	}
	public void deposit( double amount ){
		balance = balance + amount;
	}
	public void withdrawal( double amount ){
		balance = balance - amount;
	}
	public double checkBalance( ){
		return balance;
	}
	public String toString(){
		return String.format("Current balance is $%.2f", balance);
	}
}
public class BankingApp {

	public static void main(String[] args) {
		Account agnes = new Account( 100.0 );
		System.out.println( agnes );
		
		agnes.deposit( 0.10 );
		System.out.println( agnes );

//		agnes.withdrawal( 200 );
//		System.out.println( agnes );

	}

}
